<?php
/**
 * token获取用户信息
 */
require_once dirname(__DIR__) . "/common.php";
use app\cls\tom\Response;
use app\cls\tom\Tools;

if(empty($_REQUEST["token"])){
    Response::output(-1,"参数错误");
}
$token=$_REQUEST["token"];
$userService = new \app\service\User();
$u_info = $userService->validateToken($token,true);
Response::output(0,"返回成功",$u_info);